home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Run Magazine ReRun 1986 March & April
/
rerun-1986-03-04.d64
/
runscript params
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
2KB
|
88 lines
10 rem select default parameters
40 rem select screen colors
50 printchr$(147)"0 - black"
60 print"1 - white"
70 print"2 - red"
80 print"3 - cyan"
90 print"4 - purple"
100 print"5 - green"
110 print"6 - blue
120 [153]"7 - yellow
130 print"8 - orange
140 [153]"9 - brown
150 print"10 - light red
160 [153]"11 - dark gray
170 print"12 - medium gray
180 [153]"13 - light green
190 print"14 - light blue
200 [153]"15 - light gray
220 print
230 input"default text color0[157][157][157]";colr
240 poke 6684,colr
250 input"[145]default screen color3[157][157][157]";colr
260 poke 6682,colr
270 input"[145]default border color6[157][157][157]";colr
280 poke 6683,colr
290 input"[145]default status line color6[157][157][157]";colr
300 poke 6685,colr
330 rem input high memory limit
340 print : print
350 input"[147]runscript's highest address53247[157][157][157][157][157][157][157]";adr
360 adr=adr-256 : poke 6691,(adr/256-int(adr/256))*256 : poke 6692,adr/256
390 rem select default save device
400 print : print
410 print"enter the device number of your main"
420 print"data storage device."
430 input"default save device8[157][157][157]";dev : poke 6686,dev
460 rem input default ascii mode
470 rem true ascii or commodore ascii
480 print : print
490 print"true ascii or commodore (normal) ascii?"
500 input"select type (true/normal)normal[157][157][157][157][157][157][157][157]";a$
510 if left$(a$,1)="t" then flag=255 : goto 540
520 if left$(a$,1)="n" then flag=0 : goto 540
530 goto 480
540 poke 6716,flag
570 rem select line feed or no line feed
580 print : print
590 print"should a line feed character be printed after each carriage return ?"
600 input"(y/n)n[157][157][157]";a$
610 if left$(a$,1)="y" then flag=255
620 if left$(a$,1)="n" then flag=0 : goto 640
630 goto 580
640 poke 6713,flag
670 rem input secondary addresses
680 print : print
690 print"enter the correct secondary address to"
700 print"cause the printer to print in "
710 print"upper/lower case."
720 input"text secondary address7[157][157][157]";adr
730 poke 6693,adr
740 print
750 print"enter the secondary address to use when"
760 print"programming the printer with macro"
770 print"strings."
780 input"command secondary address7[157][157][157]";adr
790 poke 6694,adr
820 rem save runscript ml
830 printchr$(147);
850 print"8 - disk"
860 print"9 - disk"
870 print
880 input"save to which device8[157][157][157]";dev
890 if dev><1 and dev<>8 and dev<>9 then 830
900 poke 780,0 : poke 781,dev : poke 782,0
910 sys 65466 : rem setlfs
930 prog$="runscript"
940 if dev<>1 then prog$="0:"+prog$
950 for loop=1 to len(prog$)
960 poke 849+loop,asc(mid$(prog$,loop,1))
970 next loop
990 poke 780,len(prog$) : poke 781,850and255 : poke 782,850/256
1000 sys 65469 : rem setnam
1020 adr=12048 : rem end of runscript
1030 poke 253,4681and255 : poke 254,4681/256
1040 poke 780,253 : poke 781,adrand255 : poke 782,adr/256
1050 sys 65496 : rem save
1080 end